//
//  KCContact.m
//  mutiThread
//
//  Created by xiaoxiaojia on 17/4/11.
//  Copyright (c) 2017年 admin. All rights reserved.
//

#import "KCContact.h"

@implementation KCContact
-(KCContact*) initWithFirstName:(NSString *)firstName andLastName:(NSString *)lastName andPhoneNumber:(NSString *)phoneNumber{
	self.firstName=firstName;
	self.lastName=lastName;
	self.phoneNumber=phoneNumber;
	return self;

}
-(NSString*)getName{
	return [NSString stringWithFormat:@"%@%@",self.firstName,self.lastName];
}
+(KCContact*)initWithFirstName:(NSString *)firstName andLastName:(NSString *)lastName andPhoneNumber:(NSString *)phoneNumber{
	KCContact* contact=[[KCContact alloc]init];
	contact.lastName=lastName;
	contact.firstName=firstName;
	contact.phoneNumber=phoneNumber;
	return contact;
}
@end
